﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Example42
{
    class Rectangle : Polygon
    {   
        public Rectangle(int w,int h): base(w){
            height=h;//base la de goi ham dung lop cha
        }
        public int area()
        {
            return (width * height);
        }
    }
}
